<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
    <table border="1px" width="80%" align="center">
        <tr>
            <th>ID</th>
            <th>账户名</th>
            <th>金额</th>
            <th>操作 | <a href="/pages/add.jsp">添加</a></th>
        </tr>
        <c:forEach items="${list}" var="account">
            <tr>
                <td>${account.id}</td>
                <td>${account.name}</td>
                <td>${account.money}</td>
                <td>
                    <a href="/account/findById?id=${account.id}">修改</a>
                    |
                    <a href="/account/deleteById?id=${account.id}">删除</a></td>
            </tr>
        </c:forEach>
    </table>
</body>
</html>
